package com.itheima.dao;

import com.itheima.pojo.Permission;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

public interface PermissionDao {
    Set<Permission> getByroleId(Integer roleId);

    List<Permission> getByConditions(@Param("queryString") String queryString);

    void add(Permission permission);

    void delete(Integer id);

    void update(Permission permission);

    Permission getById(Integer id);

    List<Permission> getAll();
}
